package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学员信息对象 sys_school_student
 * 
 * @author 杨皓焜
 * @date 2021-01-31
 */
public class SysSchoolStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学员id */
    private Long id;

    /** 学员姓名 */
    @Excel(name = "学员姓名")
    private String studentName;

    /** 入校时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入校时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date studentDate;

    /** 班级id */
    @Excel(name = "班级id")
    private Long classId;

    private Long studentId;

    private SysSchoolClass classes;

    public SysSchoolClass getClasses() {
        return classes;
    }

    public void setClasses(SysSchoolClass classes) {
        this.classes = classes;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    private List<SysSchoolScore> sysSchoolScoreList;

    public List<SysSchoolScore> getSysSchoolScoreList() {
        return sysSchoolScoreList;
    }

    public void setSysSchoolScoreList(List<SysSchoolScore> sysSchoolScoreList) {
        this.sysSchoolScoreList = sysSchoolScoreList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStudentName(String studentName) 
    {
        this.studentName = studentName;
    }

    public String getStudentName() 
    {
        return studentName;
    }
    public void setStudentDate(Date studentDate) 
    {
        this.studentDate = studentDate;
    }

    public Date getStudentDate() 
    {
        return studentDate;
    }
    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentName", getStudentName())
            .append("studentDate", getStudentDate())
            .append("classId", getClassId())
            .toString();
    }
}
